﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmlEngine.Extensions
{
    public static class DictionaryExtensions
    {
        public static void Replace<TKey, TValue>(this Dictionary<TKey, TValue> dict, KeyValuePair<TKey, TValue> item)
        {
            // wait what use does this have
            if (dict.Contains(item))
            {
                dict.Remove(item.Key);
            }
            dict.Add(item.Key, item.Value);
        }
    }
}
